<template>
    <div class="all">
        <!-- <div style="text-align:center;font-size:28px;font-weight:bold;">{{$route.name}}</div> -->
        <div class="search">
            <el-form ref="form" :model="financialSearch" :inline="true" size="mini" v-if="">
                <el-form-item label="日期：">
                    <el-date-picker
                        v-model="financialSearch.dataTime"
                        type="daterange"
                        format="yyyy-MM-dd"
                        value-format="yyyy-MM-dd"
                        range-separator="至"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期"
                        :picker-options="pickerOptions"
                    ></el-date-picker>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="searchClick(2)">查 询</el-button>
                </el-form-item>
            </el-form>
        </div>
        <div class="btn" v-if="jurisdiction.export_state === 1">
            <el-button size="medium" type="primary" @click="exportTable()">导 出</el-button>
            <a class="dn" id="exportToExcel" style="visibility:hidden"></a>
        </div>
        <span v-else></span>
        <!-- 可是化图表 -->
        <div style="width:100%;height:500px;margin-bottom:20px;" id="echart" ref="sheetEchart"></div>
        <!-- 数据列表 -->
        <div class="table">
            <!-- 表格 -->
            <el-table
                :data="financialTable"
                border
                height="400"
                :style="{width:screenWidth+'px'}"
                :cell-style="cellStyle"
                :header-cell-style="rowClass"
                @selection-change="allSelectionChange"
            >
                <!-- <el-table-column type="selection" width="60px"></el-table-column> -->
                <el-table-column type="index" label="序号" width="80px"></el-table-column>
                <el-table-column label="时间" width="160px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.create_time*1000 | formatDate }}</span><!--  {{ scope.row.create_time*1000 | formatDateBehind }} -->
                    </template>
                </el-table-column>
                <el-table-column label="洗车台次" width="160px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.wash_num }}次</span>
                    </template>
                </el-table-column>
                <el-table-column label="洗车台次(小汽车)" width="160px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.car_num }}次</span>
                    </template>
                </el-table-column>
                <el-table-column label="洗车台次(SUV)" width="160px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.suv_num }}次</span>
                    </template>
                </el-table-column>
                <el-table-column label="洗车台次(MPV)" width="160px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.mpv_num }}次</span>
                    </template>
                </el-table-column>
                <el-table-column label="非会员消费金额" width="140px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.money_nonmember }}元</span>
                    </template>
                </el-table-column>
                <el-table-column label="会员消费金额" width="120px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.money_member }}元</span>
                    </template>
                </el-table-column>
                <el-table-column label="会员充值金额" width="120px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.money_recharge }}元</span>
                    </template>
                </el-table-column>
                <el-table-column label="服务收益" width="120px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.service_money }}元</span>
                    </template>
                </el-table-column>
                <el-table-column label="售后收益" width="120px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.sale_money }}元</span>
                    </template>
                </el-table-column>
                <el-table-column label="积分(已使用)" width="120px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.integral_used }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="新增积分" width="120px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.integral_unused }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="优惠券使用张数" width="130px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.coupon_num }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="优惠券抵扣总金额" width="140px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.coupon_money }}元</span>
                    </template>
                </el-table-column>
                <el-table-column label="客单价" width="120px">
                    <template slot-scope="scope">
                        <span>{{ scope.row.price_unit }}元</span>
                    </template>
                </el-table-column>
            </el-table>

            <!-- 分页 -->
            <el-pagination
                @size-change="pageCount"
                @current-change="currentPageCount"
                :current-page="currentPage"
                :page-sizes="[100, 500,1000,1500, 2000]"
                :page-size="currentCount"
                layout="prev, pager, next, jumper, sizes,total"
                :total="pageResultSize"
            ></el-pagination>
        </div>
    </div>
</template>

<script>
import echarts from "echarts";
import "../../../static/scss/page.scss";
import utils from "../../util/request";
import {formatDate} from "../../util/time.js";
import {timetamp} from "../../util/time.js";
import {timedata} from "../../util/time.js";
export default {
    data() {
        return {
            // 分页
            jurisdiction: null,
            activerouter: null,
            currentPage: 1, //初始页面
            currentCount: 100, //当前页面的数据数量
            pageResultSize: 10, //表格数据总数
            screenWidth: window.innerWidth, //可视宽度
            sheetDataArrX: [
                "08-01",
                "08-02",
                "08-03",
                "08-04",
                "08-05",
                "08-06",
                "08-07",
                "08-07",
                "08-09",
                "08-10",
                "08-11",
                "08-12",
                "08-13",
                "08-14",
                "08-15"
            ], //显示x轴的数值
            carWashAllArr: [10,3,5,10,20,60,40,80,50,75,105,85,94,125,150], //显示y轴的洗车台次数值
            carWashArr: [5,1,2,3,5,14,50,10,50,35,45,84,69,76,98,106], //显示y轴的洗车台次(小汽车)数值
            carWashSUVArr: [3,1,1,3,6,4,12,5,6,14,25,34,16,28,37,46], //显示y轴的洗车台次(SUV)数值
            carWashMPVArr: [2,1,2,7,8,14,3,25,16,24,15,21,13,37,25,39], //显示y轴的洗车台次(MPV)数值
            money_nonmemberArr: [100,300,150,360,280,140,310,250,160,260,105,213,130,370,225,369], //显示y轴的非会员消费数值
            money_memberArr: [150,280,350,260,180,130,360,150,190,220,165,243,180,340,275,389], //显示y轴的会员消费数值
            money_rechargeArr: [650,780,550,660,680,230,660,450,210,290,865,743,580,640,975,689], //显示y轴的会员充值金额数值
            integral_used: [200,540,410,350,240,153,680,450,657,426,358,496,672,547,352], //显示y轴的积分(已使用)数值
            integral_unused: [260,570,820,650,280,353,480,850,697,826,658,796,972,587,852], //显示y轴的积分(未使用)数值
            sheetEcharts: null, //折线图
            financialSearch: {
                //搜索
                dataTime: "" //时间段
                // area: "", //城市
                // merchantNumber: "", //商户号
                // create_time: "" //时间
            },
            pickerOptions: {
                disabledDate(time) {
                    return time.getTime() > Date.now();
                }
            },
            financialTable: [
                {
                    create_time: "2020-08-15", //时间
                    wash_num: "10", //洗车台次
                    car_num: "5", //洗车台次(小汽车)
                    suv_num: "3", //洗车台次(SUV)
                    mpv_num: "2", //洗车台次(MPV)
                    money_nonmember: "18", //非会员消费金额
                    money_member: "26", //会员消费金额
                    money_recharge: "128", //会员充值金额
                    service_money: 18, //服务收益
                    sale_money: 10, //售后收益
                    integral_used: "0", //积分(已使用)
                    integral_unused: "0", //积分(未使用)
                    perCustomer: 2.8 //客单价
                },
                {
                    create_time: "2020-08-15", //时间
                    wash_num: "10", //洗车台次
                    car_num: "5", //洗车台次(小汽车)
                    suv_num: "3", //洗车台次(SUV)
                    mpv_num: "2", //洗车台次(MPV)
                    money_nonmember: "18", //非会员消费金额
                    money_member: "26", //会员消费金额
                    money_recharge: "128", //会员充值金额
                    service_money: 18, //服务收益
                    sale_money: 10, //售后收益
                    integral_used: "0", //积分(已使用)
                    integral_unused: "0", //积分(未使用)
                    perCustomer: 2.8 //客单价
                },
                {
                    create_time: "2020-08-15", //时间
                    wash_num: "10", //洗车台次
                    car_num: "5", //洗车台次(小汽车)
                    suv_num: "3", //洗车台次(SUV)
                    mpv_num: "2", //洗车台次(MPV)
                    money_nonmember: "18", //非会员消费金额
                    money_member: "26", //会员消费金额
                    money_recharge: "128", //会员充值金额
                    service_money: 18, //服务收益
                    sale_money: 10, //售后收益
                    integral_used: "0", //积分(已使用)
                    integral_unused: "0", //积分(未使用)
                    perCustomer: 2.8 //客单价
                },
                {
                    create_time: "2020-08-15", //时间
                    wash_num: "10", //洗车台次
                    car_num: "5", //洗车台次(小汽车)
                    suv_num: "3", //洗车台次(SUV)
                    mpv_num: "2", //洗车台次(MPV)
                    money_nonmember: "18", //非会员消费金额
                    money_member: "26", //会员消费金额
                    money_recharge: "128", //会员充值金额
                    service_money: 18, //服务收益
                    sale_money: 10, //售后收益
                    integral_used: "0", //积分(已使用)
                    integral_unused: "0", //积分(未使用)
                    perCustomer: 2.8 //客单价
                }
            ]
        };
    },
    filters:{
        // 时间
		formatDate(time){
			var date = new Date(time);
			return formatDate(date, 'yyyy-MM-dd');
		},
		formatDateBehind(time){
			var date = new Date(time);
			return formatDate(date, 'hh:mm:ss')
		}
    },
    methods: {
        getEchart() {
            // 获取店铺订单图表
            let date = new Date();
            let year =  date.getFullYear();
            let month = date.getMonth() + 1;
            var d = new Date(year,month,0);
            var arr = new Array(d.getDate()), i=arr.length;while(i--){arr[i] = i+1+"日";}
            var arrdata = new Array(d.getDate()),o=arrdata.length;while(o--){arrdata[o] = 0};
            // console.log(year,month)

            this.carWashAllArr = JSON.parse(JSON.stringify(arrdata)); //显示y轴的洗车台次数值
            this.carWashArr = JSON.parse(JSON.stringify(arrdata)); //显示y轴的洗车台次(小汽车)数值
            this.carWashSUVArr = JSON.parse(JSON.stringify(arrdata)); //显示y轴的洗车台次(SUV)数值
            this.carWashMPVArr = JSON.parse(JSON.stringify(arrdata)); //显示y轴的洗车台次(MPV)数值
            this.money_nonmemberArr = JSON.parse(JSON.stringify(arrdata)); //显示y轴的非会员消费数值
            this.money_memberArr = JSON.parse(JSON.stringify(arrdata)); //显示y轴的会员消费数值
            this.money_rechargeArr = JSON.parse(JSON.stringify(arrdata)); //显示y轴的会员充值金额数值
            this.integral_used = JSON.parse(JSON.stringify(arrdata)); //显示y轴的积分(已使用)数值
            this.integral_unused = JSON.parse(JSON.stringify(arrdata)); //显示y轴的积分(未使用)数值
            let echhartsserve = JSON.parse(JSON.stringify(arrdata));//售后收益
            let echhartsafter = JSON.parse(JSON.stringify(arrdata));//售后收益


            let data = {page:1,list_rows:999999999};
            if(this.financialSearch.dataTime !== "" && this.financialSearch.dataTime !== null){
                data.start_time = timetamp(String(this.financialSearch.dataTime[0]));//开始时间
                data.end_time = timedata(this.financialSearch.dataTime[1]);//结束时间))
            }
            utils.request("/finance/list","post",data).then(resp=>{
                console.log(resp)
                let dataorder = JSON.parse(JSON.stringify(resp.data.data.data));
                for(var keytime=0;keytime<dataorder.length;keytime++){
                    let repdate = new Date(dataorder[keytime].create_time*1000)
                    // console.log(repdate.getFullYear(),repdate.getMonth()+1)
                    if(repdate.getFullYear() === year && repdate.getMonth()+1 ===month ){
                        // console.log(repdate.getDate())
                        this.carWashAllArr[repdate.getDate()-1] +=  Number(dataorder[keytime].wash_num); //显示y轴的洗车台次数值
                        this.carWashArr[repdate.getDate()-1] +=  Number(dataorder[keytime].car_num); //显示y轴的洗车台次(小汽车)数值
                        this.carWashSUVArr[repdate.getDate()-1] +=  Number(dataorder[keytime].suv_num); //显示y轴的洗车台次(SUV)数值
                        this.carWashMPVArr[repdate.getDate()-1] +=  Number(dataorder[keytime].mpv_num); //显示y轴的洗车台次(MPV)数值
                        this.money_nonmemberArr[repdate.getDate()-1] +=  Number(dataorder[keytime].money_nonmember); //显示y轴的非会员消费数值
                        this.money_memberArr[repdate.getDate()-1] +=  Number(dataorder[keytime].money_member); //显示y轴的会员消费数值
                        this.money_rechargeArr[repdate.getDate()-1] +=  Number(dataorder[keytime].money_recharge); //显示y轴的会员充值金额数值
                        this.integral_used[repdate.getDate()-1] +=  Number(dataorder[keytime].integral_used); //显示y轴的积分(已使用)数值
                        this.integral_unused[repdate.getDate()-1] +=  Number(dataorder[keytime].integral_unused); //显示y轴的积分(未使用)数值
                        echhartsserve[repdate.getDate()-1] += Number(dataorder[keytime].service_money);
                        echhartsafter[repdate.getDate()-1] +=  Number(dataorder[keytime].sale_money)
                        // console.log(this.carWashAllArr,this.carWashArr,this.carWashSUVArr,this.carWashMPVArr,this.money_nonmemberArr,this.money_memberArr,this.money_rechargeArr,this.integral_used,this.integral_unused,echhartsserve,echhartsafter)
                    }
                }
                this.sheetEcharts = echarts.init(document.getElementById("echart"));
                this.sheetEcharts.setOption({
                    title: {
                        text: month+'月财务总表',
                    },
                    tooltip: {
                        trigger: "axis",
                        formatter: function(params) { //自定义函数修改折线图给数据加单位
                            var str = '';//声明一个变量用来存储数据
                            str += '<div>'+ params[0].name +'</div>'; //显示日期的函数
                            for(var i=0; i<params.length; i++) { //图显示的数据较多时需要循环数据，这样才可以成功的给多条数据添加单位
                                if(i >= 0 && i <= 3){
                                    str += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+params[i].color+';"></span>'+ params[i].seriesName +'</span> : <span>'+ (params[i].data ? params[i].data+'台' : '暂无') +'</br>';
                                    // console.log(params[i].color,params[i].data)
                                }else if(i >= 4 && i <= 8){
                                    str += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+params[i].color+';"></span>'+ params[i].seriesName +'</span> : <span>'+ (params[i].data ? params[i].data+'元' : '暂无') +'</br>';
                                    // console.log(params[i].color,params[i].data)
                                // }else if(i===6){
                                //     str += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+params[i].color+';"></span>'+ params[i].seriesName +'</span> : <span>'+ (params[i].data ? params[i].data+'角' : '暂无') +'</br>';
                                //     // console.log(params[i].color,params[i].data)
                                }else{
                                    str += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+params[i].color+';"></span>'+ params[i].seriesName +'</span> : <span>'+ (params[i].data ? params[i].data : '暂无') +'</br>';
                                    // console.log(params[i].color,params[i].data)
                                }
                            }
                            return str;
                        }

                    },
                    legend: {
                        left:"130px",
                    },
                    grid: {
                        left: "3%",
                        right: "4%",
                        bottom: "3%",
                        containLabel: true
                    },
                    xAxis: [
                        {
                            type: "category",
                            boundaryGap: false,
                            data: arr//this.sheetDataArrX
                        }
                    ],
                    yAxis: [
                        {
                            type: "value"
                        }
                    ],
                    series: [
                        {
                            name: "洗车台次",
                            type: "line",
                            smooth: 0.4,
                            // lineStyle: {
                            //     width: 1,
                            //     color: "#2DA8FF"
                            // },
                            yAxisIndex: 0,
                            data: this.carWashAllArr
                        },
                        {
                            name: "洗车台次(小汽车)",
                            type: "line",
                            smooth: 0.4,
                            data: this.carWashArr
                        },
                        {
                            name: "洗车台次(SUV)",
                            type: "line",
                            smooth: 0.4,
                            data: this.carWashSUVArr
                        },
                        {
                            name: "洗车台次(MPV)",
                            type: "line",
                            smooth: 0.4,
                            data: this.carWashMPVArr
                        },
                        {
                            name: "非会员消费金额",
                            type: "line",
                            smooth: 0.4,
                            data: this.money_nonmemberArr
                        },
                        {
                            name: "会员消费金额",
                            type: "line",
                            smooth: 0.4,
                            data: this.money_memberArr
                        },
                        {
                            name: "会员充值金额",
                            type: "line",
                            smooth: 0.4,
                            data: this.money_rechargeArr
                        },
                        {
                            name: "服务收益",
                            type: "line",
                            smooth: 0.4,
                            data: echhartsserve
                        },
                        {
                            name: "售后收益",
                            type: "line",
                            smooth: 0.4,
                            data: echhartsafter
                        },
                        {
                            name: "积分(已使用)",
                            type: "line",
                            smooth: 0.4,
                            data: this.integral_used
                        },
                        {
                            name: "新增积分",
                            type: "line",
                            smooth: 0.4,
                            data: this.integral_unused
                        }
                    ]
                    // color: ["#2DA8FF", "#FBBB6E"]
                });
            })
            // this.sheetDataArrX = 
            this.sheetEcharts = echarts.init(document.getElementById("echart"));
            this.sheetEcharts.setOption({
                title: {
                    text: month+'月财务总表',
                },
                tooltip: {
                    trigger: "axis"
                },
                legend: {
                    left:"130px",
                },
                grid: {
                    left: "3%",
                    right: "4%",
                    bottom: "3%",
                    containLabel: true
                },
                xAxis: [
                    {
                        type: "category",
                        boundaryGap: false,
                        data: arr//this.sheetDataArrX
                    }
                ],
                yAxis: [
                    {
                        type: "value"
                    }
                ],
                series: [
                    {
                        name: "洗车台次",
                        type: "line",
                        smooth: 0.4,
                        // lineStyle: {
                        //     width: 1,
                        //     color: "#2DA8FF"
                        // },
                        yAxisIndex: 0,
                        data: this.carWashAllArr
                    },
                    {
                        name: "洗车台次(小汽车)",
                        type: "line",
                        smooth: 0.4,
                        data: this.carWashArr
                    },
                    {
                        name: "洗车台次(SUV)",
                        type: "line",
                        smooth: 0.4,
                        data: this.carWashSUVArr
                    },
                    {
                        name: "洗车台次(MPV)",
                        type: "line",
                        smooth: 0.4,
                        data: this.carWashMPVArr
                    },
                    {
                        name: "非会员消费金额",
                        type: "line",
                        smooth: 0.4,
                        data: this.money_nonmemberArr
                    },
                    {
                        name: "会员消费金额",
                        type: "line",
                        smooth: 0.4,
                        data: this.money_memberArr
                    },
                    {
                        name: "会员充值金额",
                        type: "line",
                        smooth: 0.4,
                        data: this.money_rechargeArr
                    },
                    {
                        name: "服务收益",
                        type: "line",
                        smooth: 0.4,
                        data: echhartsserve
                    },
                    {
                        name: "售后收益",
                        type: "line",
                        smooth: 0.4,
                        data: echhartsafter
                    },
                    {
                        name: "积分(已使用)",
                        type: "line",
                        smooth: 0.4,
                        data: this.integral_used
                    },
                    {
                        name: "新增积分",
                        type: "line",
                        smooth: 0.4,
                        data: this.integral_unused
                    }
                ]
                // color: ["#2DA8FF", "#FBBB6E"]
            });
        },
        searchClick(num) {
            // 查询
            let data = {page:this.currentPage,list_rows:this.currentCount};
            if(this.financialSearch.dataTime !== "" && this.financialSearch.dataTime !== null){
                data.start_time = timetamp(String(this.financialSearch.dataTime[0]));//开始时间
                data.end_time = timedata(this.financialSearch.dataTime[1]);//结束时间))
            }
            utils.request("/finance/list","post",JSON.stringify(data)).then(resp=>{
                console.log(resp)
                this.financialTable = resp.data.data.data;
                this.pageResultSize = resp.data.data.total;
                if(num === 2){
                    resp.data.data.total 
                    ? this.$message({
                        message: "找到"+resp.data.data.total+"财务数据",
                        type: "success"
                    }) : this.$message("没有符合条件的数据")
                    this.getEchart();
                }else{return}
            })
            // 
        },
        exportTable() {
            // 导出
            let data = {page:this.currentPage,list_rows:this.currentCount};
            if(this.financialSearch.dataTime !== "" && this.financialSearch.dataTime !== null){
                data.start_time = timetamp(String(this.financialSearch.dataTime[0]));//开始时间
                data.end_time = timedata(this.financialSearch.dataTime[1]);//结束时间))
            }
            utils.request("/finance/exportPD","post",JSON.stringify(data)).then(resp=>{
                console.log(resp)
                // 下载表单内容需要转码，不然会是跳转不能下载
                let Base64 = require('js-base64').Base64;
                // 下载数据的封装，添加完整的标签代码
                const template = `<html xmlns:o="urn:schemas-microsoft-com:office:office" 
                xmlns:x="urn:schemas-microsoft-com:office:excel" 
                xmlns="http://www.w3.org/TR/REC-html40">
                <head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet>
                <x:Name>123</x:Name>
                <x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet>
                </x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]-->
                </head><body>${resp.data}</body></html>`;//${resp.data}是一个table闭合标签的数据
                // 定义下载文件的类型
                const uri = 'data:application/vnd.ms-excel;base64,';
                // window.location.href = uri + Base64.encode(template);
                document.getElementById('exportToExcel').href = uri + Base64.encode(template);
                // 补后缀
                let data = {},name;
                // console.log(data==="",data===undefined,data===null,data===NaN)
                if(this.financialSearch.dataTime !== "" && this.financialSearch.dataTime !== null){
                    data.start_time = this.financialSearch.dataTime[0].substring(this.financialSearch.dataTime[0].length-5);//开始时间
                    data.end_time = this.financialSearch.dataTime[1].substring(this.financialSearch.dataTime[1].length-5);//结束时间))
                    name = '财务报表('+data.start_time+' — '+data.end_time+').xls'
                }else{
                   name = "财务报表(总表).xls"
                }
                document.getElementById('exportToExcel').download = name;
                document.getElementById('exportToExcel').click();
            })
        },
        //   表格居中
        cellStyle: function({ row, column, rowIndex, columnIndex }) {
            return "text-align:center;";
        },
        rowClass: function({ row, rowIndex }) {
            return "text-align:center;";
        },
        allSelectionChange: function(val) {
            // 获取选中的内容
            console.log(val);
            this.selectTable = val;
        },
        // 每页数据的数量
        pageCount: function(val) {
            this.currentCount = val;
            this.searchClick(1)
        },
        // 点击的第几页
        currentPageCount: function(val) {
            this.currentPage = val;
            this.searchClick(1)
        }
    },
    mounted() {
        this.getEchart();
    },
    created() {
        let Base64 = require("js-base64").Base64;
        let menuarr = JSON.parse(Base64.decode(sessionStorage.getItem("menuarr")))
        for(var i=0;i<menuarr.length;i++){
            // console.log(menuarr[i].link)
            if(menuarr[i].link === this.$route.path){
                this.jurisdiction = menuarr[i]
            }else{}
        }
        this.searchClick(1)
        // console.log(this.$route,this.jurisdiction)

        // utils.request("summaries", "post").then(res => {
        //     console.log('不知道的东西',res);
        // });
    }
};
</script>




